//
//  SheQuViewCell.m
//  TravelYo
//
//  Created by lanou3g on 15/10/28.
//  Copyright © 2015年 TravelYo. All rights reserved.
//

#import "SheQuViewCell.h"

@implementation SheQuViewCell

// 重写初始化方法
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self addItemSubViews];
        
    }
    return self;
}


- (void)addItemSubViews
{
  
    //UIView *backGroundView = [UIView ]
    
    
  self.photoImage = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kContentView / 2, 100)];
   
    // self.photoImage.backgroundColor = [UIColor orangeColor];
    [self.contentView addSubview:self.photoImage];
    
    // 名字
    self.nameLable = [[UILabel alloc] initWithFrame:CGRectMake(self.photoImage.right + 10, self.photoImage.top,kContentView - 10 - self.photoImage.frame.size.width, 50)];
   // self.nameLable.backgroundColor = [UIColor blueColor];
    self.nameLable.numberOfLines = 0;
    [self.contentView addSubview:self.nameLable];
    
    // 总数
    self.totalLable = [[UILabel alloc] initWithFrame:CGRectMake(self.nameLable.left, self.nameLable.bottom + 5, kContentView - 10 - self.photoImage.frame.size.width, 50)];
    //self.totalLable.backgroundColor = [UIColor blueColor];
    self.totalLable.numberOfLines = 0;
    [self.contentView addSubview:self.totalLable];
    
    
}






@end
